package com.hfy.kandian.dao.command;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hfy.kandian.entity.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class UserInfoCommand extends BaseCommand{

    private int userId;

    private String userName;

    private String userPassword;

    private String userPic;

    private String userPhone;

    private Integer userSex;

    public User convertToUser() {
        User user = new User();
        BeanUtils.copyProperties(this,user);
        return user;
    }
}
